package cn.edu.njupt.eclass.aixinling.service;

import cn.edu.njupt.eclass.aixinling.model.Tag;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: kent
 * @date: 2018/6/1 15:07
 */
@Service
public interface TagService {
    List<Tag> getAll();

    Tag getHighestWeightTag();//获取最高权重的Tag

    List<Tag> getTagsByNum(Integer num);

    int setTagUnpublishedById(Integer id);

    int setTagPublishedById(Integer id);

    int getStatusById(Integer id);

    int setTagsTopById(Integer id);

    Tag getTagById(Integer id);

    int EditTagById(Tag tag);

    int deleteById(Integer id);

    int addNewTag(Tag tag);

}
